package lee.vioson.remotedata.dao

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import lee.vioson.remotedata.bean.Book

/**
 *Author:viosonlee
 *Date:2023/6/18
 *DESCRIPTION:
 */
@Dao
interface BookDao {
    @Query("SELECT * FROM book")
    fun getAll(): List<Book>

    @Insert
    fun insetAll(vararg book: Book)

    @Delete
    fun delete(book: Book)
}